#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main() {
    string s;
    cin >> s;
    string ret;
    vector<string> arr;
    int left = 0;
    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] == ' ' || s[i] == '\0')
        {
            arr.push_back(s.substr(left, i - left));
            left = i + 1;
        }
    }
    for (auto& x : arr)
    {
        if (x[0] >= 'a' && x[0] <= 'z')
        {
            x[0] = x[0] - 32;
        }
        ret += x[0];
    }
    cout << ret << endl;
}